package com.czt.mail.current;

/**
 * @author czt
 * @version 1.0
 * {@desc}
 * @date 2024/8/2 16:24
 */
public class CreateTread {

    public static void main(String[] args) {
        Thread thread = new Thread(() -> System.out.println("方法执行了..."),"t1");

        Runnable runnable = () -> System.out.println("runnable方法执行了...");

        Thread t1 = new Thread(runnable,"线程2");

        thread.start();
        t1.start();
    }
}
